const util = require('util')
const fs = require('fs')
const myReadFile = util.promisify(fs.readFile)

async function text() {
    try {
        let txt1 = await myReadFile('./txt1.txt')
        let txt2 = await myReadFile('./txt2.txt')
        let txt3 = await myReadFile('./txt3.txt')
        const res = txt1 + txt2 + txt3
        console.log(res);
    } catch (error) { 
        console.log(error);
    }
}
text()